// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import VueRouter from 'vue-router'

// //一级路由
// import HelloWord from './components/HelloWord'
// import test1 from './components/test'
// //二级路由
// import test11 from './components/test1/test11'
// Vue.config.productionTip = false
// Vue.use(VueRouter)
//
// //配置路由
// const router = new VueRouter({
//   routes: [
//     //component:指的是组件的名字，还需要引入该组件，这里的表示根路径
//     { path: "/", name: "helloWordLink", component: HelloWord },
//     {
//       path: "/test",
//       name: "test1Link",
//       component: test1,
//       children: [ //test1中的二级路由
//         { path: "/test1/test11", name: "test11Link", component: test11 }
//       ]
//     },
//     { path: "/test2", name: "test2Link", component: test2 }
//   ],
//   mode: "history" //作用是为了消除url中后面的/#/
// })
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
